<p class="Paragraph">When you include hyperlinks, (at least) two factors must be taken into account, namely whether they are set as relative or absolute on saving, and whether or not the file is present:</p>
<ul class="L1">
<li class="">
<p class="P2"><help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> behaves differently depending on the setting entered under <help:link Id="66264" xmlns:help="http://openoffice.org/2000/help">Tools - Options - Load/Save - General</help:link>, where you can choose whether the links should be created <help:popup Id="65619" Eid="speichern" xmlns:help="http://openoffice.org/2000/help">in relative or absolute fashion on saving</help:popup>. Relative addressing is only possible when the output document and the destination of the link are on the same drive.</p>
</li>
<li class="">
<p class="P2">You should create the same directory structure on your hard disk as that which exists in the web space hosted by your Internet provider. Call the root directory for the homepage on your hard disk "homepage", for example. The start file is then "index.htm", for example, the full path being "C:\homepage\index.htm". The URL on your Internet provider's server might, for example, then be as follows: "http://www.myprovider.com/mypage/index.htm". With relative addressing you indicate the link relative to the location of the output document. For example, if you placed all the graphics for your homepage in a subfolder called "C:\homepage\images", you would need to give the following path to access the graphic "picture.gif": "images\picture.gif". This is the relative path, starting from the location of the file "index.htm". On the provider's server, you would place the picture in the folder "mypage/images". When you transfer the document "index.htm" to the provider's server via the <span class="T1"><text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>File - Save As</span> dialog, and if you have marked the option <span class="T1">Copy local graphics to Internet</span> under <span class="T1">Tools - Options - Load/Save - HTML Compatibility</span>, <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> will automatically copy the graphic to the correct directory on the server.</p>
</li>
<li class="">
<p class="P2">An absolute path such as "C:\homepage\graphics\picture.gif" would no longer function on the provider server. Neither a server nor a computer of a reader needs to have a C: hard drive: (operating systems such as Unix or MacOS do not recognize drive letters) and even if the folder homepage\grahics existed your picture would not be available. It is better to use relative addressing for file links.</p>
</li>
<li class="">
<p class="P2">A link to a web page, e.g., "www.stardivision.com" or "www.myprovider.com/mypage/index.htm" is an absolute link.</p>
</li>
<li class="">
<p class="P2"><help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> also reacts differently, depending on whether the file referred to in the link exists, and where it is located. <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> checks every new link and sets a target and protocol automatically. The result can be seen in the generated HTML code (not in the Help tip of the link, see note below) after saving the source document.</p>
</li>
<li class="">
<p class="P2">The following rules apply: A relative reference ("graphic/picture.gif") is only possible when both files exist on the same drive. If the files are on different drives in your local file system, the absolute reference follows the "file:" protocol ("file:///data1/xyz/picture.gif"). If the files are on different servers or if the target of the link is not available, the absolute reference uses the "http:" protocol ("http://data2/abc/picture.gif").</p>
</li>
<li class="">
<p class="P2">Therefore, be sure to organize all files for your homepage on the same drive as the start file of the homepage. In this way, <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> can set the protocol and target so that the reference on the server is always correct.</p>
<p class="Paragraph">When you rest your mouse on a hyperlink, a help tip displays the absolute reference, since <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> uses absolute path names internally. The complete path and address can only be seen when you view the result of the HTML export, i.e., by loading the HTML file as "Text" or opening it with a text editor.</p>